<template>
    <risk-people-quotas-common
        bg-color="#f4c15f"
        :data="data"
        :items="items"
    ></risk-people-quotas-common>
</template>
<script>
import RiskPeopleQuotasCommon from './risk-people-quotas-common'
import { DEFAULT_QUOTA_CLICK } from './util'

export default {
    name: 'RiskPeopleQuotasLove',
    components: {
        RiskPeopleQuotasCommon
    },
    props: {
        data: {
            type: Object,
            default: () => ({})
        }
    },
    computed: {
        items () {
            return [{
                label: '关爱人员总数',
                large: true,
                prop: 'carePersonSum',
                dataType: 20,
                click: DEFAULT_QUOTA_CLICK.openPeoplePage
            }, {
                label: '老人',
                prop: 'laoRenNum',
                dataType: 21,
                click: DEFAULT_QUOTA_CLICK.openPeoplePage
            }, {
                label: '儿童',
                prop: 'erTongNum',
                dataType: 22,
                click: DEFAULT_QUOTA_CLICK.openPeoplePage
            }, {
                label: '孕妇',
                prop: 'yunFuNum',
                dataType: 23,
                click: DEFAULT_QUOTA_CLICK.openPeoplePage
            }, {
                label: '基础疾病',
                prop: 'jiChuJiBingNum',
                dataType: 24,
                click: DEFAULT_QUOTA_CLICK.openReportPage
            }, {
                label: '心理疾病',
                prop: 'xinLiJiBingNum',
                 dataType: 25,
                click: DEFAULT_QUOTA_CLICK.openReportPage
            }]
        }
    }
}
</script>